package com.liaoxuefeng.ref_exe;

public class Main {

    public static void main(String[] args) throws Exception {
        if (args.length > 0) {
            create(args[0]);
        }

        Class stdClass = Student.class;
        System.out.println(stdClass.getField("score"));
        System.out.println(stdClass.getField("name"));
        System.out.println(stdClass.getDeclaredField("grade"));

    }

    static void create(String name) {
        Person p = new Person(name);
    }
}

class Student extends Person {
    public int score;
    private int grade;
}
